package com.hualude.roadsign.dto;

import com.hualude.roadsign.model.RoadpoleEntity;

/**
 * Created by shao-yikun on 2017/4/7.
 */
public class RoadpoleDto {
    private Integer roadPoleId;
    private String projectNumber;
    private String longitude;
    private String latitude;
    private String province;
    private String city;
    private String area;
    private String roadName;
    private String startRoad;
    private String endRoad;
    private Integer roadPoleShape;
    private String roadPoleSize;
    private String roadPolePic;
    private Integer roadPoleBridge;
    private Integer roadPoleSecurity;
    private Integer createUserId;
    private Integer modifierId;
    private Integer orgId;
    private Integer mainOrgId;
    private String roadPoleCreateTime;
    private Integer roadPoleRegionId;
    private Integer roadPoleIsComplete;

    private String userName;            //createUserId对应的用户名
    private String orgName;             //orgId对应公司名称
    private String mainOrgName;         //orgId对应主管公司名称
    private Integer roadSignCount;              //标牌数量

    private Integer[] signType;         //标牌类型


    public RoadpoleDto() {
    }

    public RoadpoleDto(Integer roadPoleId, String longitude, String latitude, String province, String city, String area, String roadName, String startRoad, String endRoad, Integer roadPoleShape, String roadPoleSize, Integer roadPoleBridge, Integer roadPoleSecurity, Integer createUserId, Integer orgId, String roadPoleCreateTime, Integer roadPoleIsComplete, String roadPolePic, Integer mainOrgId) {
        this.roadPoleId = roadPoleId;
        this.longitude = longitude;
        this.latitude = latitude;
        this.province = province;
        this.city = city;
        this.area = area;
        this.roadName = roadName;
        this.startRoad = startRoad;
        this.endRoad = endRoad;
        this.roadPoleShape = roadPoleShape;
        this.roadPoleSize = roadPoleSize;
        this.roadPoleBridge = roadPoleBridge;
        this.roadPoleSecurity = roadPoleSecurity;
        this.createUserId = createUserId;
        this.orgId = orgId;
        this.roadPoleCreateTime = roadPoleCreateTime;
        this.roadPoleIsComplete = roadPoleIsComplete;
        this.roadPolePic = roadPolePic;
        this.mainOrgId = mainOrgId;
    }

    /**
     * @Description: 标牌路段统计
     * @Author: lin-anqian
     * @Date: 2017/5/4 23:47
     */
    public RoadpoleDto(String city, String province, String area, String roadName, String OrgName) {
        this.province = province;
        this.city = city;
        this.area = area;
        this.roadName = roadName;
        this.orgName = OrgName;
    }

    /**
     * @Description: 根据标杆id 获取标杆信息
     * @Author: Panjianan
     * @Data: 1:00:2017/4/12
     * @params:
     **/
    public RoadpoleDto(Integer roadPoleId, String longitude, String latitude, String province, String city, String area, String roadName, String startRoad, String endRoad, String roadPolePic, Integer roadPoleBridge) {
        this.roadPoleId = roadPoleId;
        this.longitude = longitude;
        this.latitude = latitude;
        this.province = province;
        this.city = city;
        this.area = area;
        this.roadName = roadName;
        this.startRoad = startRoad;
        this.endRoad = endRoad;
        this.roadPolePic = roadPolePic;
        this.roadPoleBridge = roadPoleBridge;
    }

    /**
     * @Description: 标杆统计datatables4DT
     * @Author: lin-anqian
     * @Date: 2017/4/8 22:42
     */
    public RoadpoleDto(Integer roadPoleId, String roadPolePic, String province,
                       String city, String area, String roadName, String mainOrgName, String orgName, String longitude,
                       String latitude, Integer roadPoleBridge, Integer roadPoleIsComplete, Integer roadPoleSecurity,
                       String roadPoleCreateTime, String startRoad, String endRoad) {
        this.roadPoleId = roadPoleId;
        this.longitude = longitude;
        this.latitude = latitude;
        this.province = province;
        this.city = city;
        this.area = area;
        this.roadName = roadName;
        this.roadPoleBridge = roadPoleBridge;
        this.roadPoleSecurity = roadPoleSecurity;
        this.roadPoleCreateTime = roadPoleCreateTime;
        this.roadPoleIsComplete = roadPoleIsComplete;
        this.roadPolePic = roadPolePic;
        this.mainOrgName = mainOrgName;
        this.orgName = orgName;
        this.startRoad = startRoad;
        this.endRoad = endRoad;
    }

    public RoadpoleDto(Integer roadPoleId, String roadPolePic, String area, String roadName, String longitude, String latitude, Integer roadPoleBridge, Integer roadPoleIsComplete, Integer roadPoleSecurity, String roadPoleCreateTime,
                       String province,
                       String city,
                       String startRoad,
                       String endRoad) {
        this.roadPoleId = roadPoleId;
        this.longitude = longitude;
        this.latitude = latitude;
        this.area = area;
        this.roadName = roadName;
        this.roadPoleBridge = roadPoleBridge;
        this.roadPoleSecurity = roadPoleSecurity;
        this.roadPoleCreateTime = roadPoleCreateTime;
        this.roadPoleIsComplete = roadPoleIsComplete;
        this.roadPolePic = roadPolePic;
        this.province = province;
        this.city = city;
        this.startRoad = startRoad;
        this.endRoad = endRoad;
    }

    public String getProjectNumber() {
        return projectNumber;
    }

    public void setProjectNumber(String projectNumber) {
        this.projectNumber = projectNumber;
    }

    public Integer getRoadPoleId() {
        return roadPoleId;
    }

    public void setRoadPoleId(Integer roadPoleId) {
        this.roadPoleId = roadPoleId;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getRoadName() {
        return roadName;
    }

    public void setRoadName(String roadName) {
        this.roadName = roadName;
    }

    public String getStartRoad() {
        return startRoad;
    }

    public void setStartRoad(String startRoad) {
        this.startRoad = startRoad;
    }

    public String getEndRoad() {
        return endRoad;
    }

    public void setEndRoad(String endRoad) {
        this.endRoad = endRoad;
    }

    public Integer getRoadPoleShape() {
        return roadPoleShape;
    }

    public void setRoadPoleShape(Integer roadPoleShape) {
        this.roadPoleShape = roadPoleShape;
    }

    public String getRoadPoleSize() {
        return roadPoleSize;
    }

    public void setRoadPoleSize(String roadPoleSize) {
        this.roadPoleSize = roadPoleSize;
    }

    public Integer getRoadPoleBridge() {
        return roadPoleBridge;
    }

    public void setRoadPoleBridge(Integer roadPoleBridge) {
        this.roadPoleBridge = roadPoleBridge;
    }

    public Integer getRoadPoleSecurity() {
        return roadPoleSecurity;
    }

    public void setRoadPoleSecurity(Integer roadPoleSecurity) {
        this.roadPoleSecurity = roadPoleSecurity;
    }

    public Integer getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Integer createUserId) {
        this.createUserId = createUserId;
    }

    public Integer getOrgId() {
        return orgId;
    }

    public void setOrgId(Integer orgId) {
        this.orgId = orgId;
    }

    public String getRoadPoleCreateTime() {
        return roadPoleCreateTime;
    }

    public void setRoadPoleCreateTime(String roadPoleCreateTime) {
        this.roadPoleCreateTime = roadPoleCreateTime;
    }

    public Integer getRoadPoleIsComplete() {
        return roadPoleIsComplete;
    }

    public void setRoadPoleIsComplete(Integer roadPoleIsComplete) {
        this.roadPoleIsComplete = roadPoleIsComplete;
    }

    public String getRoadPolePic() {
        return roadPolePic;
    }

    public void setRoadPolePic(String roadPolePic) {
        this.roadPolePic = roadPolePic;
    }

    public Integer getMainOrgId() {
        return mainOrgId;
    }

    public void setMainOrgId(Integer mainOrgId) {
        this.mainOrgId = mainOrgId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public Integer getRoadPoleRegionId() {
        return roadPoleRegionId;
    }

    public void setRoadPoleRegionId(Integer roadPoleRegionId) {
        this.roadPoleRegionId = roadPoleRegionId;
    }

    public Integer getModifierId() {
        return modifierId;
    }

    public void setModifierId(Integer modifierId) {
        this.modifierId = modifierId;
    }

    public Integer getRoadSignCount() {
        return roadSignCount;
    }

    public void setRoadSignCount(Integer roadSignCount) {
        this.roadSignCount = roadSignCount;
    }

    public String getMainOrgName() {
        return mainOrgName;
    }

    public void setMainOrgName(String mainOrgName) {
        this.mainOrgName = mainOrgName;
    }

    public Integer[] getSignType() {
        return signType;
    }

    public void setSignType(Integer[] signType) {
        this.signType = signType;
    }

    public RoadpoleEntity toBean() {
        RoadpoleEntity roadpoleEntity = new RoadpoleEntity();
        roadpoleEntity.setProjectNumber(projectNumber);
        roadpoleEntity.setLongitude(longitude);
        roadpoleEntity.setLatitude(latitude);
        roadpoleEntity.setProvince(province);
        roadpoleEntity.setCity(city);
        roadpoleEntity.setArea(area);
        roadpoleEntity.setRoadName(roadName);
        roadpoleEntity.setStartRoad(startRoad);
        roadpoleEntity.setEndRoad(endRoad);
        roadpoleEntity.setRoadPoleShape(roadPoleShape);
        roadpoleEntity.setRoadPoleSize(roadPoleSize);
        roadpoleEntity.setRoadPoleBridge(roadPoleBridge);
        roadpoleEntity.setRoadPoleSecurity(roadPoleSecurity);
        roadpoleEntity.setCreateUserId(createUserId);
        roadpoleEntity.setOrgId(orgId);
        roadpoleEntity.setRoadPoleCreateTime(roadPoleCreateTime);
        roadpoleEntity.setRoadPoleIsComplete(0);
        roadpoleEntity.setRoadPolePic(roadPolePic);
        roadpoleEntity.setMainOrgId(mainOrgId);
        roadpoleEntity.setRoadPoleRegionId(roadPoleRegionId);
        roadpoleEntity.setModifierId(modifierId);
        return roadpoleEntity;
    }

}
